<script setup lang="ts">
import {  ref } from "vue";
import "sv-print/dist/style.css"; // 一般在入口文件(index/main)添加
import {Designer} from "@sv-print/vue3"

let template = ref({});
let printData = ref({});

const onDesigned = (e) => {
	console.log("onDesigned");
	console.log(e);
};
const getValue = ()=>{
	return template.value;
}
defineExpose({
	getValue
})
</script>

<template>
	<Designer :template="template" :printData="printData" @onDesigned="onDesigned" />
</template>

<style scoped></style>
